package edu.sctu.practice.class02.hujie.cgs.practice02.test05;

/**
 * Created by hj on 2015/10/20.
 */
public class Person {
    private String name;
    private int age;

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public void diplay() {
        System.out.println("姓名:" + name);

        System.out.println("年龄:" + age);
    }

    public static void main(String[] args) {
        Person one = new Person("胡杰", 20);
        one.diplay();
    }
}
